<template>
  <div class="content">
    <div v-if="isShow" style="
          width: 100%;height: 100%;
          position: fixed;
          top: 0;
          left: 0;
          background-color: rgba(0, 0, 0, 0.7);
          padding: 20px;
          display: flex;
          z-index:999;
          flex-direction: column;
          align-items: center;
          justify-content: center;"
          :append-to-body="true"
    >
      <div class="cover">
        <div class="cover-top">
          <div class="top-left">
            <div class="sign"></div>
            <div class="title">企业总人数</div>
          </div>
          <div class="top-right">×</div>
        </div>
<!--        <div class="cover-middle">-->
<!--          统计时间：-->
<!--          <div class="begin">2023/01/01</div>-->
<!--          至-->
<!--          <div class="over">2023/07/23</div>-->
<!--        </div>-->
        <div class="cover-bottom">
          <div class="region-item" v-for="item in list" :key="item.id">
            <div class="name">{{ item.name }}</div>
            <div class="count">{{ item.count }}</div>
            人
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "Cover",
  data() {
    return{
      count: 2,
      page: 1,
      limit: 6,
      isShow: true,
      list: [
        {
          id: 1,
          name: '肃州区',
          count: 1024,
        },
        {
          id: 2,
          name: '金塔县',
          count: 1024,
        },
        {
          id: 3,
          name: '瓜州县',
          count: 1024,
        },
        {
          id: 4,
          name: '玉门市',
          count: 1024,
        },
        {
          id: 5,
          name: '敦煌市',
          count: 1024,
        },
        {
          id: 6,
          name: '肃北县',
          count: 1024,
        },
        {
          id: 7,
          name: '阿克塞县',
          count: 1024,
        }
      ]
    }
  },
  methods:{
    handleSizeChange(e) {
      this.limit = e
      this.getList()
    },
    handleCurrentChange(e) {
      this.page = e
      sessionStorage.setItem('currentPage',this.page)
      this.getList()
    },
  }
}
</script>

<style lang="scss" scoped>
.content{
  .cover{
    position: relative;
    width: 52%;
    height: 70%;
    background-color: #0A1456;
    border-radius: 15px;
    padding: 20px;
    .cover-top{
      display: flex;
      justify-content: space-between;
      .top-left{
        display: flex;
        .sign{
          background-color: #498CF3;
          width: 10px;
          height: 20px;
          border-radius: 15px;
          margin-right: 15px;
        }
        .title{
          color: #ffffff;
        }
      }
      .top-right{
        color: #2FA1F9;
        font-size: 20px;
        cursor: pointer;
        margin-right: 5px;
      }
    }
    .cover-middle{
      margin: 60px 0 30px 0;
      display: flex;
      justify-content: center;
      color: #fff;
      .begin{
        width: 120px;
        border: 1px solid #31A6FE;
        color: #fff;
        text-align: center;
        border-radius: 3px;
        margin-right: 15px;
      }
      .over{
        width: 120px;
        border: 1px solid #31A6FE;
        color: #fff;
        text-align: center;
        border-radius: 3px;
        margin: 0 15px;
      }
    }
    .cover-bottom{
      display: flex;
      flex-wrap: wrap;
      width: 83%;
      height: 60%;
      margin: 0 auto;
      border-radius: 5px;
        .region-item{
          display: flex;
          justify-content: center;
          align-items: center;
          width: calc((100% - 30px)/3);
          height: 30%;
          background-color: #164088;
          border-radius: 5px;
          color: #fff;
          margin-right: 10px;
          border: 1px solid #31A7FF;
          .name{
            color: #fff;

          }
          .count{
            color: #50FFC1;
            font-size: 30px;
            //margin-bottom: 10px;
            margin: 0 5px 10px 5px;
          }
        }
    }
  }
}
</style>

